class Cat:
    def __init__(self,name,age):
        self.name = name
        self.age =age
    def talk(self):
        print(f'我的名字是{self.name},我今年{self.age}岁')
        

cat1 = Cat('旺财','5')
cat1.talk()